import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';

import { DataModel } from './model';

import { DataSource } from './data';

export class AppService {
    protected _data: any;
    constructor() {
        this._data = new DataSource();
    }

    public handlerData(): Observable<DataModel[]>{
        return this._data.map(res => res)
    }

}


const app = new AppService();
// console.log(app);

const r = app.handlerData();
console.log(r);
